﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_accpayMetadata))]//使用ts_accpayMetadata对ts_accpay进行数据验证
    public partial class ts_accpay : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
       
            [ScaffoldColumn(true)]
            [Display(Name = "名称", Order = 1)]
            public string c_name { get; set; }
         
        	[ScaffoldColumn(true)]
			[Display(Name = "本期发生", Order = 2)] 
			public string debit { get; set; }

        	[ScaffoldColumn(true)]
			[Display(Name = "本期回款", Order = 3)]
            public string credit { get; set; }

        	[ScaffoldColumn(true)]
			[Display(Name = "期末", Order = 4)]
            public string QMCount { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "联系人", Order = 5)]
            public string c_staff { get; set; }
        
            [ScaffoldColumn(true)]
            [Display(Name = "电话", Order = 6)]
            public string c_tele { get; set; }
        #endregion

    }
    public class ts_accpayMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "类型", Order = 2)]
			[StringLength(4, ErrorMessage = "长度不可超过4")]
			public object c_type { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "日期", Order = 3)]
			[DataType(DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? dt_dt { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "单号", Order = 4)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? i_no { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "支付方式", Order = 5)]
			[StringLength(10, ErrorMessage = "长度不可超过10")]
			public object c_paymethod { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "原始单号", Order = 6)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_invno { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "操作员", Order = 7)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_clerk { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "金额", Order = 8)]
			public object f_debit { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "信贷", Order = 9)]
			public object f_credit { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 10)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object c_comment { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "状态", Order = 11)]
            [StringLength(10, ErrorMessage = "长度不可超过10")]
            public object i_sign { get; set; }


    }


}

